'use strict';

angular.module('app')
    .constant('APP_CONST', {
        PROPERTY: {
            API_URL: 'http://127.0.0.1:80'
        },
        STORAGE: {
            USER: 'user',
            MENU: 'menu',
            AUTH_TOKEN: 'authToken'
        }
    })
    .constant('DICT_CONST', {
        YES_NO: [{
            key: true,
            value: '是'
        }, {
            key: false,
            value: '否'
        }],

        STATUS: [{
            key: '0',
            value: '停用'
        }, {
            key: '1',
            value: '启用'
        }],
        PERSON_TYPE: [{
            key: "2100.205.150",
            value: '驾驶员'
        }, {
            key: "2100.205.190",
            value: '押运员'
        }, {
            key: "2100.205.191",
            value: '驾驶员/押运员'
        }],
        PERSON_STATE_TYPE: [{
            key: "2101.165.150",
            value: '在职'
        }, {
            key: "2101.165.155",
            value: '离职'
        }],
        VEHICLE_TYPE: [{
            key: "0",
            value: '牵引车'
        }, {
            key: "1",
            value: '挂车'
        }],
        AUDIT: [{
            key: "0",
            value: '待审核'
        }, {
            key: "2",
            value: '审核未通过'
        }, {
            key: "1",
            value: '审核通过'
        }],

        ALARM_TYPE: [{
            key: "2550.160.150",
            value: '超速'
        }, {
            key: "2550.160.180",
            value: '超载'
        }, {
            key: "2550.160.175",
            value: '超重'
        },{
            key: "2550.7120.160",
            value: '无GPS'
        }, {
            key: "2550.7120.155.100",
            value: '牵引车未登记报警'
        },  {
            key: "2550.7120.155.105",
            value: '挂车未登记报警'
        },{
            key: "2550.160.170",
            value: '偏离路线'
        }, {
            key: "2550.160.185",
            value: '超经营范围'
        }],
        GENDER: [ {
            key: 'M',
            value: '男'
        }, {
            key: 'F',
            value: '女'
        }]
    })

;